Benjamin Otte [Wed, 9 Nov 2011 02:15:27 +0000 (03:15 +0100)]
testgtk: Remove deprecations from shapes test
Benjamin Otte [Wed, 9 Nov 2011 02:13:43 +0000 (03:13 +0100)]
testgtk: Don't use deprecated functions in properties example
Benjamin Otte [Wed, 9 Nov 2011 01:52:50 +0000 (02:52 +0100)]
treeview: Do a simple replace for gdk_window_get_pointer()
Replace it with the equivalent gdk_window_get_device_position() with the
core pointer.
Benjamin Otte [Wed, 9 Nov 2011 01:52:09 +0000 (02:52 +0100)]
gtk-demo: Remove excessive pointer querying
Benjamin Otte [Tue, 8 Nov 2011 21:18:32 +0000 (22:18 +0100)]
queryimmodules: Actually fix deprecation warnings
The previous patch still caused warnings. Ooops. That's what you get for
not compiling with -Werror.
Michael Natterer [Tue, 8 Nov 2011 23:34:45 +0000 (00:34 +0100)]
quartz: include all buttons' state in GdkEventMotion.state
(cherry picked from commit
3b5c5710daa337b61c9e2135e3e55c380e5bc991)
Michael Natterer [Tue, 8 Nov 2011 23:25:01 +0000 (00:25 +0100)]
quartz: include all buttons' states in GdkEventButton.state
(cherry picked from commit
a381e8ea62441b6715ba9bcb0e04332fd914f8b1)
Michael Natterer [Tue, 8 Nov 2011 20:41:19 +0000 (21:41 +0100)]
Bug 663605 - Fix event->state of many event types on quartz
Don't try to remember the current keyboard modifier and mouse button
states from the last event, because that isn't always right, and don't
set event.state = 0 for generated events. Instead, add private functions
to get the current states, and implement them with API that retrieves
these states independently from an event.
Benjamin Otte [Tue, 8 Nov 2011 16:49:28 +0000 (17:49 +0100)]
treeview: Remove unused crack code
No, querying the pointer position in a draw callback is not a good idea.
No, setting FOCUSSED based on that position is not a good idea either.
Benjamin Otte [Tue, 8 Nov 2011 16:19:11 +0000 (17:19 +0100)]
widget: Don't use deprecated symbols
Not even in deprecated functions!
Benjamin Otte [Tue, 8 Nov 2011 15:52:19 +0000 (16:52 +0100)]
widget: Deprecate gtk_widget_get_pointer ()
Benjamin Otte [Tue, 8 Nov 2011 15:50:07 +0000 (16:50 +0100)]
treeview: Remove call to gtk_widget_get_pointer()
Benjamin Otte [Tue, 8 Nov 2011 15:47:08 +0000 (16:47 +0100)]
paned: Pass x/y position to update_drag()
This way we get the coordinates from the right device instead of using
any random device.
Benjamin Otte [Tue, 8 Nov 2011 15:41:26 +0000 (16:41 +0100)]
paned: Remove MOTION_HINT_MASK
It's not needed anymore. GDK does culling of events for us.
Benjamin Otte [Tue, 8 Nov 2011 15:41:15 +0000 (16:41 +0100)]
menuitem: WOrk around deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 14:38:27 +0000 (15:38 +0100)]
queryimmodules: Disable deprecaion warnings for deprecated header
Benjamin Otte [Tue, 8 Nov 2011 14:38:06 +0000 (15:38 +0100)]
settings: Disable deprecaion warnings for deprecated header
Benjamin Otte [Tue, 8 Nov 2011 13:55:46 +0000 (14:55 +0100)]
layout: Work around deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 13:48:14 +0000 (14:48 +0100)]
immodule: Disable deprecations before including deprecated header
Benjamin Otte [Tue, 8 Nov 2011 19:22:57 +0000 (20:22 +0100)]
gtk: Empty gtkimmodule.h
Move the remaining struct definition into gtkimcontextinfo.h and include
that header in gtk.h. gtkimmodule.h is now an empty header. We should
probably deprecate it somehow.
This is also necessary so headers used in gtk .c files don't include
gtk.h which in turn includes all the deprecated headers which we want to
avoid so we can include them with deprecation warnings turned off.
Benjamin Otte [Tue, 8 Nov 2011 19:16:48 +0000 (20:16 +0100)]
build: Don't append to an accidentally existing file
Benjamin Otte [Tue, 8 Nov 2011 19:03:09 +0000 (20:03 +0100)]
immodule: Move private functions to a private header
Benjamin Otte [Tue, 8 Nov 2011 13:37:35 +0000 (14:37 +0100)]
immodule: Fix includes
Make includes not rely on gtkimmodule.h including gtk.h. This will be
important once we remove gtkimmodule from the include files.
That way, we can achieve not pulling deprecated headers automatically.
Benjamin Otte [Tue, 8 Nov 2011 13:39:00 +0000 (14:39 +0100)]
window: Fix cast warnings
Benjamin Otte [Tue, 8 Nov 2011 13:33:48 +0000 (14:33 +0100)]
treeview: Fix warnings from fixing warnings
Warnings introdcued by fixing deprecation warnings in
2ead4c6038ae3eac4681ab54858eca1fd06b6c4b
Benjamin Otte [Tue, 8 Nov 2011 13:15:30 +0000 (14:15 +0100)]
icontheme: Get rid of deprecation warnings
Before including deprecated headers, disable deprecation warnings.
Benjamin Otte [Tue, 8 Nov 2011 04:01:32 +0000 (05:01 +0100)]
cellrendererspinner: Ignore deprecation warnings
The cell renderer relies on deprecated functionality, so we need to
disable deprecations for included deprecated headers.
Benjamin Otte [Tue, 8 Nov 2011 04:04:32 +0000 (05:04 +0100)]
cellrendererspinner: Include correct header
Benjamin Otte [Tue, 8 Nov 2011 04:00:54 +0000 (05:00 +0100)]
button: Don't call deprecated functions
Benjamin Otte [Tue, 8 Nov 2011 03:56:36 +0000 (04:56 +0100)]
assistant: Work around deprecation warnings
Rui Matos [Fri, 28 Oct 2011 22:45:38 +0000 (23:45 +0100)]
gtk: Add a GTK_STATE_FLAG_WINDOW_UNFOCUSED widget state flag
This allows themes to style widgets differently according to whether the
toplevel window they are in is presented as focused.
https://bugzilla.gnome.org/show_bug.cgi?id=661428
Rui Matos [Fri, 28 Oct 2011 22:29:01 +0000 (23:29 +0100)]
x11: Implement GDK_WINDOW_STATE_FOCUSED on top of _NET_WM_STATE_FOCUSED
_NET_WM_STATE_FOCUSED is a new _NET_WM_STATE hint which allows us to
implement a meaningful GDK_WINDOW_STATE_FOCUSED under X11. If the window
manager doesn't support this hint we keep GDK_WINDOW_STATE_FOCUSED set since
that is what gtk+ implicitly assumed historically.
https://bugzilla.gnome.org/show_bug.cgi?id=661428
Rui Matos [Fri, 28 Oct 2011 22:21:04 +0000 (23:21 +0100)]
gdk: Add GDK_WINDOW_STATE_FOCUSED to GdkWindowState
This state means that the toplevel window is presented as focused to the user,
i.e with active decorations under an X11 window manager.
If the GDK backend doesn't implement this flag, it will just remain set after
mapping the window.
https://bugzilla.gnome.org/show_bug.cgi?id=661428
Marc-André Lureau [Tue, 8 Nov 2011 01:03:38 +0000 (02:03 +0100)]
reftests: Add a reftest for background-repeat css property
https://bugzilla.gnome.org/show_bug.cgi?id=663522
Cosimo Cecchi [Tue, 8 Nov 2011 17:36:55 +0000 (12:36 -0500)]
themingengine: set the cairo extend to PAD when we're stretching bg
This avoids artifacts around the borders due to bilinear filtering cairo
applies to the surface pattern when stretching it.
https://bugzilla.gnome.org/show_bug.cgi?id=663522
Marc-André Lureau [Sun, 6 Nov 2011 18:33:05 +0000 (19:33 +0100)]
css: start background-repeat
By default, a background image is stretched. Instead, it is worth to
have a tiled background.
This patch allows background surfaces to be repeated or not, and should
be compatible with future extensions and CSS.
https://bugzilla.gnome.org/show_bug.cgi?id=663522
Marc-André Lureau [Mon, 7 Nov 2011 23:10:13 +0000 (00:10 +0100)]
Rename s/GtkCssRepeatStyle/GtkCssBorderRepeatStyle/g
https://bugzilla.gnome.org/show_bug.cgi?id=663522
John Ralls [Mon, 7 Nov 2011 22:25:08 +0000 (14:25 -0800)]
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()"
If a zero-sized NSImage calls lockfocus it throws an exception. Make sure that the image isn't zero-sized before calling lockfocus, and log a warning and return NULL if it is zero-sized.
Have the quartz version of gtk_drag_begin_idle return FALSE if the returned image is NULL.
John Ralls [Mon, 7 Nov 2011 21:48:03 +0000 (13:48 -0800)]
Revert "[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()". Utterly screwed up. Sorry.
This reverts commit
8216324e4b13f0349ed3c0f854d41e6b32d1f0cb.
and commit
3243e6955cd4014345170fdd9246a13eacad86dd.
John Ralls [Mon, 7 Nov 2011 21:18:14 +0000 (13:18 -0800)]
Fix accidental paste error in
8216324
John Ralls [Mon, 7 Nov 2011 21:04:59 +0000 (13:04 -0800)]
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()
If _gtk_quartz_create_image_from_pixbuf is given a pixbuf with size 0, 0
or which produces an NSImage with size 0.0, 0.0, it throws an exception
which Gtk doesn't handle.
your changes. Lines starting
Michael Natterer [Mon, 7 Nov 2011 19:09:00 +0000 (20:09 +0100)]
gdk: exclude MOD1 from the virtual modifier mapping
which effectively nails down the MOD1 == ALT assumption that is valid
in all other parts of GTK+. After the modifier abstraction fixes for
OSX, the virtual mapping is now (correctly) used in more places, and
caused problems with the common default PC keyboard layout on X11 that
colocates ALT and META on the same key.
Morten Welinder [Mon, 7 Nov 2011 18:10:24 +0000 (13:10 -0500)]
Print preview: make cancel work
This makes cancels of a print preview work in the same way it
works for non-previews, i.e., the operation stops at the next
page boundary.
https://bugzilla.gnome.org/show_bug.cgi?id=662160
Michael Natterer [Sun, 6 Nov 2011 22:12:57 +0000 (23:12 +0100)]
quartz: handle recursive CFRunLoops
Fixes e.g. crashs when dropping from finder.
Turn the "getting_events" boolean into a counter to handle poll_func()
being called recursively, and track the loop depth correctly by
changing its counter before bailing out in run_loop_observer_callback().
This way we reallocate our autorelease pool at the right time, and
don't kill memory that is still in use by outer run loops.
Also drain, not release the pool, just for some defensive forward
compatibility.
(cherry picked from commit
ef9a92d225f7257f56c3a8b7b28ddd9a734e38e6)
Torsten Schönfeld [Sat, 15 Oct 2011 17:18:52 +0000 (19:18 +0200)]
gtk: add annotations for some GtkRadio* constructors
Since constructors like gtk_radio_button_new_from_widget take an
instance of their type as the first argument, the gi scanner interprets
them as methods.
https://bugzilla.gnome.org/show_bug.cgi?id=661858
Kristian Rietveld [Sun, 6 Nov 2011 09:36:00 +0000 (10:36 +0100)]
quartz: use get_toplevel_from_ns_event in one more place
Fixup needed due to refactoring in GTK+-3.0.
Kristian Rietveld [Sun, 6 Nov 2011 08:34:39 +0000 (09:34 +0100)]
quartz: make gdk_quartz_osx_version conform to coding style
Kristian Rietveld [Sun, 6 Nov 2011 08:33:50 +0000 (09:33 +0100)]
quartz: make test_resize () conform to coding style
Kristian Rietveld [Sun, 6 Nov 2011 08:25:16 +0000 (09:25 +0100)]
quartz: Process motion events within windows bounds without window set
When an NSEvent does not have the window field set, we already assumed
the event was not for us and discarded it. But for NSMouseMoved events
we now make an exception, because such events generated after
using/clicking the main menu bar have the window field set to NULL while
the application window still has focus.
We used to experience a loss of motion events after using the menu bar,
this could be seen in buttons that stopped prelighting and first
clicks often being ignored unless you clicked somewhere else first.
These issues are fixed by this patch.
Kristian Rietveld [Sat, 5 Nov 2011 21:53:22 +0000 (22:53 +0100)]
quartz: Factor out toplevel from NSEvent code into function
Kristian Rietveld [Sat, 5 Nov 2011 21:43:17 +0000 (22:43 +0100)]
quartz: Separate out screen_point conversion in function
Reduces code duplication and confusion.
Kristian Rietveld [Sat, 5 Nov 2011 21:34:41 +0000 (22:34 +0100)]
quartz: remove unused variable
Florian Müllner [Tue, 25 Oct 2011 13:42:59 +0000 (15:42 +0200)]
menuitem: Always treat submenus as popup
Submenus are not actually attached to a menubar, but styling them
as if they were imposes some problems (at least with Adwaita).
Just using GDK_WINDOW_TYPE_HINT_POPUP_MENU for submenus instead
fixes the issue.
https://bugzilla.gnome.org/show_bug.cgi?id=662691
Akira TAGOH [Sat, 5 Nov 2011 05:47:46 +0000 (01:47 -0400)]
Allow fallback for input method modules
Accept a :-separated list of module names in GTK_IM_MODULE and
the corresponding setting, to deal a bit better with broken
situations.
https://bugzilla.gnome.org/show_bug.cgi?id=603559
Torsten Schönfeld [Sat, 15 Oct 2011 17:34:06 +0000 (19:34 +0200)]
gtk: add annotations for some GtkSymbolicColor constructors
https://bugzilla.gnome.org/show_bug.cgi?id=661859
Rui Matos [Sat, 5 Nov 2011 05:36:52 +0000 (01:36 -0400)]
x11: Fix window manager change detection
Since the wmspec_check_window doesn't have a corresponding GdkWindow we can't
rely on the get_event_window() return value to get the XID from. Just use the
XID from the XEvent directly.
https://bugzilla.gnome.org/show_bug.cgi?id=662953
Benjamin Moody [Sat, 5 Nov 2011 05:26:48 +0000 (01:26 -0400)]
Mark gtk_dialog_new_with_buttons as NULL-terminated
https://bugzilla.gnome.org/show_bug.cgi?id=663073
Matthias Clasen [Sat, 5 Nov 2011 05:23:06 +0000 (01:23 -0400)]
Pop up context menus at the right device
When multiple pointers are in play, we need to be careful
not to loose track of the device between receiving a button
press and popping up a menu.
https://bugzilla.gnome.org/show_bug.cgi?id=663396
Matthias Clasen [Sat, 5 Nov 2011 05:12:50 +0000 (01:12 -0400)]
GtkWindow: Use new begin_resize_drag api
We have an event, so the correct thing to do is to pass
the device into the function that we are calling. GDK
just grew a variant that takes a device, for this purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=663444
Matthias Clasen [Sat, 5 Nov 2011 05:12:26 +0000 (01:12 -0400)]
Wayland: Adapt to GdkWindowImpl api change
Matthias Clasen [Sat, 5 Nov 2011 05:12:07 +0000 (01:12 -0400)]
Broadway: Adapt to GdkWindowImpl API change
Matthias Clasen [Sat, 5 Nov 2011 05:11:50 +0000 (01:11 -0400)]
Quartz: Adapt to GdkWindowImpl api change
Matthias Clasen [Sat, 5 Nov 2011 05:11:18 +0000 (01:11 -0400)]
win32: Adapt to GdkWindowImpl api change
Matthias Clasen [Sat, 5 Nov 2011 05:10:16 +0000 (01:10 -0400)]
Add device-taking variants of begin_resize/move_drag
This was one of the last places where display->core_pointer was
used in non-deprecated code paths.
Matthias Clasen [Sat, 5 Nov 2011 03:38:11 +0000 (23:38 -0400)]
GdkDeviceManager: some reshuffling of docs
Bastien Nocera [Fri, 4 Nov 2011 16:39:12 +0000 (16:39 +0000)]
tests: Disable accel test until fixed
Bastien Nocera [Thu, 3 Nov 2011 18:53:19 +0000 (18:53 +0000)]
gtk: Add test program for keycode parsing
https://bugzilla.gnome.org/show_bug.cgi?id=662755
Bastien Nocera [Thu, 3 Nov 2011 15:39:57 +0000 (15:39 +0000)]
gtk: Add accel with keycode parsing functions
Which handle accelerators with keycodes as well as keyvals,
so we can use it in applications that use GtkCellRendererAccel's
"Other" mode of operations (namely gnome-control-center and
gnome-settings-daemon).
https://bugzilla.gnome.org/show_bug.cgi?id=662755
Matthias Clasen [Fri, 4 Nov 2011 03:58:46 +0000 (23:58 -0400)]
Fix make check
Colin Walters [Thu, 3 Nov 2011 19:27:16 +0000 (15:27 -0400)]
introspection: Include deprecated headers for scanner too
https://bugzilla.gnome.org/show_bug.cgi?id=663345
Piotr Drąg [Wed, 2 Nov 2011 21:12:53 +0000 (22:12 +0100)]
Updated POTFILES.in
Alexander Larsson [Wed, 2 Nov 2011 13:46:53 +0000 (14:46 +0100)]
Make sure we only show icons in the file selector bookmarks toolbar
This looked really bad in non-gnome settings where default is to
show text too.
Matthias Clasen [Wed, 2 Nov 2011 12:28:34 +0000 (08:28 -0400)]
Revert a change to the plug/socket headers
I was trying to avoid including gtk.h here, but this breaks
some of our tests, and there's a good chance that 3rd party
code also relies on this include.
Matthias Clasen [Wed, 2 Nov 2011 11:33:21 +0000 (07:33 -0400)]
Remove some more uses of gdk_window_get_pointer
Matthias Clasen [Wed, 2 Nov 2011 11:20:28 +0000 (07:20 -0400)]
Remove one instance of gdk_window_get_pointer
Matthias Clasen [Wed, 2 Nov 2011 11:08:53 +0000 (07:08 -0400)]
Remove various internal uses of deprecated api
Matthias Clasen [Wed, 2 Nov 2011 11:08:13 +0000 (07:08 -0400)]
Don't warn about deprecations in deprecated/
Matthias Clasen [Wed, 2 Nov 2011 10:45:10 +0000 (06:45 -0400)]
Move deprecated gtkwidget style api to gtkstyle
Matthias Clasen [Wed, 2 Nov 2011 05:21:49 +0000 (01:21 -0400)]
Don't warn about deprecations in deprecated/
We know we are deprecated here, no need to warn.
Matthias Clasen [Wed, 2 Nov 2011 05:15:21 +0000 (01:15 -0400)]
Move gtkstyle and gtkrc to deprecated/
This required a somewhat more substantial include reshuffling.
Some typedefs have been moved to gtkiconfactory.h and to
gtksettings.h.
Matthias Clasen [Wed, 2 Nov 2011 02:52:32 +0000 (22:52 -0400)]
Move wholly deprecated files to a subdirectory
Also install their headers to a subdirectory.
Matthias Clasen [Wed, 2 Nov 2011 03:50:19 +0000 (23:50 -0400)]
Move gtk_draw_insertion_cursor out of gtkstyle.[hc]
This function does not use GtkStyle at all and is not deprecated.
Matthias Clasen [Wed, 2 Nov 2011 02:52:56 +0000 (22:52 -0400)]
Drop DISABLE_DEPRECATED guards here, too
Matthias Clasen [Wed, 2 Nov 2011 02:35:57 +0000 (22:35 -0400)]
Don't use *DISABLE_DEPRECATED guards
Instead define GDK_DISABLE_DEPRECATION_WARNINGS where appropriate.
Matthias Clasen [Wed, 2 Nov 2011 02:35:05 +0000 (22:35 -0400)]
Don't use *_SINGLE_INCLUDES defines
GLib now outlaws single includes always, anyway.
Matthias Clasen [Wed, 2 Nov 2011 02:14:45 +0000 (22:14 -0400)]
Don't use *_DISABLE_DEPRECATED
Instead of undefining the DISABLE_DEPRECATED guards,
define the GDK_DISABLE_DEPRECATION_WARNING macro where needed.
Also replace INCLUDES by AM_CPPFLAGS to shut up automake.
Matthias Clasen [Wed, 2 Nov 2011 02:05:29 +0000 (22:05 -0400)]
Don't use deprecated GValue api
Benjamin Otte [Fri, 28 Oct 2011 20:18:31 +0000 (13:18 -0700)]
gtk-demo: Don't use deprecated code
Benjamin Otte [Fri, 28 Oct 2011 20:17:52 +0000 (13:17 -0700)]
tests: Disable fontselection deprecation warnings
This test tests deprecated code...
Benjamin Otte [Fri, 28 Oct 2011 20:12:02 +0000 (13:12 -0700)]
tooltip: Don't use deprecated API
Benjamin Otte [Fri, 28 Oct 2011 17:58:51 +0000 (10:58 -0700)]
tooltip: Remove unused variables
Benjamin Otte [Fri, 28 Oct 2011 17:23:05 +0000 (10:23 -0700)]
iconview: Keep the device for dnd autoscroll
This is necessary to query the device's coordinates when doing the
scrolling.
Benjamin Otte [Fri, 28 Oct 2011 16:26:37 +0000 (09:26 -0700)]
table: Define GDK_DISABLE_DEPRECATION_WARNINGS
Benjamin Otte [Fri, 28 Oct 2011 16:26:28 +0000 (09:26 -0700)]
handlebox: Define GDK_DISABLE_DEPRECATION_WARNINGS
Benjamin Otte [Fri, 28 Oct 2011 16:20:03 +0000 (09:20 -0700)]
fontsel: Define GDK_DISABLE_DEPRECATION_WARNINGS
Benjamin Otte [Fri, 28 Oct 2011 15:34:30 +0000 (08:34 -0700)]
gdk: Move a bunch of deprecated code to a new file
The new file defines GDK_DISABLE_DEPRECATION_WARNINGS so it can happily
use deprecated APIs.
This commit moves those functions there that use deprecated functions
and currently cause warnings.
With this commit, GDK compiles without deprecation warnings.
Benjamin Otte [Fri, 28 Oct 2011 15:13:03 +0000 (08:13 -0700)]
display: Don't use deprecated functions
When synthesizing crossing events, actually query the position of the
device we care about instead of using the core pointer every time.
Benjamin Otte [Fri, 28 Oct 2011 15:04:11 +0000 (08:04 -0700)]
x11: Do fallback resize without deprecated functions
After consulting with Carlos, we agreed that it should be enough to grab
the core pointer instead of doing a full grab. If it turns out that's
wrong, we need to adapt the internal API for resizes to take the device
doing the resize.
Benjamin Otte [Fri, 28 Oct 2011 14:08:29 +0000 (07:08 -0700)]
x11: Don't use deprecated function
Use the replacement instead.
Benjamin Otte [Thu, 13 Oct 2011 07:26:37 +0000 (00:26 -0700)]
tests: Remove unused variables